package com.jwb.demo001;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

import com.jwb.demo001.event.DemoEvent;

@Component
public class DemoListener implements ApplicationListener<DemoEvent> {

	@Override
	public void onApplicationEvent(DemoEvent event) {
		System.out.println("接受到了来自" + event.getSource() + "的广播事件:" + event.getEventMessage());

	}

}
